#include"Heap.h"

int main()
{
	int a[] = { 12,2,5,79,8,5,6,4,79,4,2,15,3 };
	size_t sz = sizeof(a) / sizeof(a[0]);
	HP hp;
	HeapInit(&hp);
	for (int i = 0; i < sz; i++)
	{
		HeapPush(&hp, a[i]);
	}
	while (!HeapEmpty(&hp))
	{
		printf("%d ", HeapTop(&hp));
		HeapPop(&hp);
	}
	HeapDestroy(&hp);
}